import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react'
import topLevelAwait from "vite-plugin-top-level-await";

// https://vite.dev/config/
export default defineConfig({
    plugins: [react(),
        topLevelAwait({
            promiseExportName: '__tla',
            promiseImportName: (i: any) => `__tla_${i}`,
        }),],
    server:{
        port:5174
    }
})
